<?php
include '../common.php';
include '../common/header.php';
if (!$_SESSION['admin']) {
	header("location:../login.php",302);
}
?>
<link href="<?=$website['public'];?>/admin/user.css" rel="stylesheet" type="text/css" />
<body>
    <div class="top">会员管理 > 会员列表</div>
    <div class="m5">
	    <div class="tabs">
	     	<ul class="tab_menu">
		     	<li>会员列表</li>
	     	</ul>
	     	<div class="tab_box">
				<table class="table">
					<thead>
					<tr>
						<th class="table_th">会员</th>
						<th class="table_th">等级&经验</th>
						<th class="table_th">积分</th>
						<th class="table_th">状态</th>
						<th class="table_th">操作</th>
					</tr>
					<?php
					$sql = "SELECT * FROM public_user ORDER BY id ASC";
					$row = select($sql,$DB);
					foreach ($row as $key => $value) { ?>
					<tr>
						<td><?php echo $value['name'] ?></td>
						<td></td>
						<td></td>
						<td><?php if(empty($value['lock'])){
								echo '正常';
						}else{
							echo "账号已锁定";
						} ?></td>
						<td><a href="?<?php echo $value['id'] ?>"><i class="iconfont icon-bianji"></i></a></td>
					</tr>
					<?php } ?>
					</thead>	
				</table>
	     	</div>
	    </div>
	</div>
</body>
</html>